#include "DriverFramework.hpp"
#include "DevObj.hpp"
#include "../common/common.hpp"
#include "../../boards/config.hpp"

#define LED_CLASS_PATH  "/dev/led"

namespace DriverFramework
{

class GPIOLED : public DevObj
{
public:
    GPIOLED();
    virtual ~GPIOLED();

    virtual int init();

    virtual int on(int pinIndex);

    virtual int off(int pinIndex);

    virtual int toggle(int pinIndex);

    virtual void _measure(void) {}

private:
    int   _gpioPin[4];
    GPIO* _gpio[4];
    int   _gpioCnt;
};

} //end namespace
